{"version":3,"file":"script.map.js","names":["BX","namespace","Main","User","Selector","UserSelector","params","this","caller","container","containerId","id","inputName","inputId","isInputMultiple","inputNode","querySelector","useSymbolicId","openDialogWhenInit","selector","UI","TileSelector","getById","Error","searchInputNode","getSearchInput","lazyload","addCustomEvent","events","buttonSelect","openDialog","bind","tileRemove","removeTile","tileClick","clickTile","SelectorController","init","prototype","initialized","selectorManagerV2","selectorInstance","open","onCustomEvent","selectorId","tile","unsetValue","type","isNotEmptyObject","data","isNotEmptyString","url","urlUseSlider","SidePanel","Instance","window","setUsers","list","addInputs","value","join","fireEvent","getUsers","getInputs","map","split","filter","parseInt","length","setValue","test","selectOne","util","in_array","push","jsonValue","mainSelectorInstance","getOption","parsedItem","JSON","parse","addInput","document","createElement","name","appendChild","Event","EventEmitter","emit","removeInputs","forEach","convert","nodeListToArray","querySelectorAll","remove","Controller","userSelector","isOpen","SelectorManager","instances","itemsSelected","itemEntityId","entityId","entities","hasOwnProperty","items","Object","keys","toLowerCase","nodes","input","tag","bindNode","formatName","result","nameTemplate","htmlspecialcharsback","item","field","replace","toUpperCase","select","self","getUserSelector","email","prefix","stringify","readonly","undeletable","entityType","isExtranet","extranet","isCrmEmail","crmEmail","state","addTile","tab","style","display","contextNode","context","unSelect","getTile","deleteSelectedItem","itemId","focus","closeDialog","openSearch","closeSearch","closeByEmptySearchResult","body","contains"],"sources":["script.js"],"mappings":"CAAC,WAEAA,GAAGC,UAAU,gBACb,GAAID,GAAGE,KAAKC,KAAKC,SACjB,CACC,MACD,CAMA,SAASC,EAAcC,GAEtBC,KAAKC,OAASF,EAAOE,OACrBD,KAAKE,UAAYT,GAAGM,EAAOI,aAC3BH,KAAKI,GAAKL,EAAOK,GACjBJ,KAAKG,YAAcJ,EAAOI,YAC1BH,KAAKK,UAAYN,EAAOM,UACxBL,KAAKM,QAAUP,EAAOM,UACtBL,KAAKO,gBAAkBR,EAAOQ,gBAC9BP,KAAKQ,UAAaR,KAAKE,UAAYF,KAAKE,UAAUO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